from fastapi import FastAPI
from fastapi.responses import RedirectResponse
from config import settings
from tasks.router import task_router

app = FastAPI(title=settings.app_name, version=settings.app_version)


@app.get("/")
def index():
    return RedirectResponse("/tasks")


app.include_router(task_router)
